<!--例行工作-->
<template>
  <div>
    <el-table
        :data="arryList"
        border
        :height="property.tableHeight"
        style="width: 100%">
      <el-table-column
          prop="create_time"
          label="陪餐时间"
          align="center">
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
import {dishIndex} from '@/api/admin/food'
export default {
  props:['property','pageindex'],
  name: "style0",
  data() {
    return {
      currentview: null, // propertytype: "companyProperty",
      // content: {
      //   label: "公司简介",
      //   body: '公司简介详细内容'
      // }
      dialogVisible: false,
      editStatus: true,
      arryList: [],
    }
  },
  watch: {
    'pageindex'(){
      this.getFileListFn()
    }
  },
  created() {
    this.getFileListFn()
  },
  methods: {
    // 获取记录
    getFileListFn() {
      dishIndex({p:this.pageindex,user_id: this.property.user_id}).then(res => {
        this.arryList = res.list.data
        this.$emit('pagtotal', res.list.total)
      })
    },
    // 关闭弹窗
    closePOpup() {
      this.$emit('update:visible', false)
    },
    getJson(option) {
      return JSON.parse(JSON.stringify(option))
    }
  },
  mounted() {
  }
}
</script>

<style scoped>

</style>
